using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;
using System.Diagnostics;

namespace Darilek.SandcastleExtensions.Utilities
{
	internal class InfoHelper
	{
		public static string GetFormattedInfo(string mainTitle)
		{
			Assembly asm = Assembly.GetExecutingAssembly();
			FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(asm.Location);

			StringBuilder sb = new StringBuilder();

			sb.AppendFormat("\r\n   {0} * {1}, version {2}]", mainTitle, fvi.ProductName, fvi.ProductVersion);
			sb.AppendFormat("\r\n   {0}, {1}", fvi.LegalCopyright, "http://www.codeplex.com/sandextensions");

			return sb.ToString();

		}
	}
}
